
<!-- 
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
<c:set var="pageURL" value="${pageContext.request.contextPath }${requestScope['javax.servlet.forward.servlet_path']}"></c:set>
<section class="sidebar">
	<ul class="sidebar-list">
		<c:forEach var="permission" items="${permissionSet}">
			<c:if test="${permission.superId eq permissionRoot && permission.isMenu==1 }">
				<li class="sidebar-item sidebar-${permission.label }">
					<span class="sidebar-item-title">${permission.name}</span>
					<div class="sidebar-submenu">
						<ul class="sidebar-submenu">
							<c:forEach var="item" items="${sessionScope.permissionSet}">
								<c:if test="${item.superId eq permission.id && item.isMenu==1 }">
									<%-- <li class="${fn:startsWith(pageURL, item.url) ? 'submenu-active' : ''}">
										<a href="${item.url }">${item.name}</a>
									</li> --%>
									<li data-type="${item.label }" class="${(sidebar eq permission.label and navbar eq item.label) ? 'submenu-active' : ''}">
										<a href="${item.url }">${item.name}</a>
									</li>
								</c:if>
							</c:forEach>
						</ul>
					</div>
				</li>
			</c:if>
		</c:forEach>
	</ul>
</section>
 -->